<?php
// +----------------------------------------------------------------------
// | 幕小铺
// +----------------------------------------------------------------------
// | 版权所有 2016~2020 幕小铺科技（大连）有限公司
// +----------------------------------------------------------------------
// | 2020/03/14
// +----------------------------------------------------------------------

namespace app\user_center\validate\member;

use think\Validate;

/**
 * 申请团长 验证器
 * @package app\admin\validate
 * @author jason wang <120907037@qq.com>
 */
class TeamLeader extends Validate
{
    protected $rule = [
        'user_id'       =>  'number|require', 	 //user_id 数字/必填/大于0
		'username'		=>  'require',
		'mobile'		=>  'require',
		'city'			=>  'require',
		'attributes'	=>  'require',
		'address'		=>  'require',
		'experience'	=>  'require',
		'wechat_group'	=>  'require',
		'wechat_num'	=>  'require',
    ];

    protected $message  =   [
        'user_id' 		=> 'user_id格式错误',
		'username'    	=> 'username格式错误',
		'mobile'    	=> 'mobile格式错误',
		'city'    		=> 'city格式错误',
		'attributes'    => 'attributes格式错误',
		'address'    	=> 'address格式错误',
		'experience'    => 'experience格式错误',
		'wechat_group'  => 'wechat_group格式错误',
		'wechat_num'    => 'wechat_num格式错误',
    ];

    //验证场景
    protected $scene = [
							'apply_team_leader' =>  [
								'user_id',
								'username',
								'mobile',
								'city',
								'attributes',
								'address',
								'experience',
								'wechat_group',
								'wechat_num',
							],
               			];
}
